package com.hjonline.sparkjob.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class SparkJobDemoApplication
{

	public static void main(String[] args) {
		SpringApplication.run(SparkJobDemoApplication.class, args);

//        ApplicationContext ctx = new SpringApplicationBuilder()
//                .sources(SpringBootSparkApplication.class)
//                .web(false)
//                .run(args);

	}

	@Bean
	public StartupRunner startupRunner(){
		return new StartupRunner();
	}
}
